From: Ted Hess Date: Tue, 22 Jul 2014 19:42:23 +0000 (-0400) Subject: Cleanup Makefile edit, add back lost cut-n-paste in init script X-Git-Tag: v14.07~93 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=7884c022acdce8c13eaeea8108822122b2131027;p=feed%2Fpackages.git Cleanup Makefile edit, add back lost cut-n-paste in init script Signed-off-by: Ted Hess --- diff --git a/multimedia/mjpg-streamer/Makefile b/multimedia/mjpg-streamer/Makefile index 7323a5d649..60b56553f8 100644 --- a/multimedia/mjpg-streamer/Makefile +++ b/multimedia/mjpg-streamer/Makefile @@ -29,7 +29,6 @@ define Package/mjpg-streamer CATEGORY:=Multimedia TITLE:=MJPG-streamer DEPENDS:=+libpthread +libjpeg +PACKAGE_libv4l:libv4l -#$(if $(CONFIG_MJPG_STREAMER_V4L2),+libv4l) URL:=http://mjpg-streamer.wiki.sourceforge.net/ MENU:=1 endef diff --git a/multimedia/mjpg-streamer/files/mjpg-streamer.init b/multimedia/mjpg-streamer/files/mjpg-streamer.init index 550ea4d2f2..eebd4f84a7 100644 --- a/multimedia/mjpg-streamer/files/mjpg-streamer.init +++ b/multimedia/mjpg-streamer/files/mjpg-streamer.init @@ -61,6 +61,10 @@ start_instance() { config_get www "$s" 'www' [ -n "$www" ] && output_arg="${output_arg} --www $www" + + config_get username "$s" 'username' + config_get password "$s" 'password' + [ -n "$username" ] && [ -n "$password" ] && output_arg="${output_arg} --credentials $username:$password" fi if [ -z "$output_arg" ]; then